Skip to content

Polyfill: In Chinese calendar getMonthList, change check to assertion#3224

Merged
ptomato merged 2 commits intotc39:mainfrom
catamorphism:getmonthlist-assertion
Jan 13, 2026
Merged

Polyfill: In Chinese calendar getMonthList, change check to assertion#3224
ptomato merged 2 commits intotc39:mainfrom
catamorphism:getmonthlist-assertion

Conversation

@catamorphism
Copy link
Contributor

This is only called on valid dates, so year should always be defined.

@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.78%. Comparing base (03f9057) to head (8ace220).
⚠️ Report is 29 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3224      +/-   ##
==========================================
+ Coverage   96.75%   96.78%   +0.02%     
==========================================
  Files          22       22              
  Lines       10398    10396       -2     
  Branches     1859     1858       -1     
==========================================
+ Hits        10061    10062       +1     
+ Misses        289      286       -3     
  Partials       48       48              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Collaborator

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one's a bit less straightforward to prove but I agree with you, I don't think I see any case where calendarYear could be undefined.

@ptomato ptomato merged commit 12a306e into tc39:main Jan 13, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants